﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SharedGenomics.Workbench.Core;
using SharedGenomics.Workbench.Views;
using SharedGenomics.Workbench.Models;
using SharedGenomics.Workbench.PresentationModel;

namespace SharedGenomics.Workbench.Presenters
{
    public class KeggPathwayFrequenciesPresenter : Presenter
    {
        public KeggPathwayFrequenciesPresenter(IKeggPathwayFrequenciesView view, IKeggPathwayFrequenciesModel model)
            : base(view)
        {
            this.PathwaysView = view;
            this.Model = model;

            view.Model = model;
        }

        public IEnumerable<KeggPathwayFrequency> PathwayFrequencies
        {
            set { this.Model.LoadPathwayFrequencies(value); }
        }

        public override bool SnapshotOnOpen
        {
            get { return true; }
        }

        private IKeggPathwayFrequenciesView PathwaysView { get; set; }
        private IKeggPathwayFrequenciesModel Model { get; set; }
    }
}
